package com.erp.user.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import com.ruoyi.common.core.web.oldDomain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotNull;

/**
 * 分公司开户额度业务对象 erp_branch_office_limit
 *
 * @author erp
 * @date 2023-05-17
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class ErpBranchOfficeLimitBo extends BaseEntity {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 分公司id
     */
    @NotNull(message = "分公司id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long branchId;

    /**
     * 参与分销代理名额
     */
//    @NotNull(message = "参与分销代理名额不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long agentNum;

    /**
     * 不参与分销代理名额
     */
//    @NotNull(message = "不参与分销代理名额不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long notAgentNum;

    /**
     * 参与分销个人名额
     */
//    @NotNull(message = "参与分销个人名额不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long userNum;

    /**
     * 不参与分销个人名额
     */
//    @NotNull(message = "不参与分销个人名额不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long notUserNum;

    /**
     * 乐观锁
     */
//    @NotBlank(message = "乐观锁不能为空", groups = { AddGroup.class, EditGroup.class })
    private String revision;

}
